package com.lanou3g.ptp.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "预警方案")
public class WarningPlan implements Serializable {

    @ApiModelProperty(name = "预警方案ID", hidden = true)
    private Long id;

    @ApiModelProperty(name = "预警方案名称")
    private String name;

    @ApiModelProperty("预警方案类型（0签到预警，1日志预警）")
    private Integer type;

    @ApiModelProperty("连续几次触发")
    private Integer timesInARow;

    @ApiModelProperty("一周几次触发")
    private Integer timesPerWeek;

    @ApiModelProperty("共几次触发")
    private Integer timesInTotal;

    @ApiModelProperty(name = "状态", hidden = true)
    private int status;

    @ApiModelProperty(name = "创建时间", hidden = true)
    private Date createTime;

    @ApiModelProperty(name = "更新时间", hidden = true)
    private Date updateTime;

    public static final Integer TYPE_SIGN = 0;
    public static final Integer TYPE_DIARY = 1;
}
